Code Coverage

Getting code coverage to work is a bit tedious. So far it works following these steps:

  1. Compile your test suite service programs with debug view *ALL.
  2. Enable debug mode for the iRPGUnit plug-in before you run the unit test.
    Debug mode is enabled, when the little green bug at the top right corner of the iRPGUnit view is pressed.

    iRPGUnit Debug Mode Enabled

  3. Set a service entry point (SEP) to your test suite service program.
  4. Switch the SEP to Code Coverage Mode:

    Change SEP to code coverage mode

  5. Run the unit test.